package com.common.demo.service;

import com.common.demo.entity.User;
//import com.common.demo.mapper.UserMapper;
import com.common.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description serviceImpl
 * @Author xiao  xun
 * @Date 2025-09-10
 */
@Service
public class serviceImpl implements service {
    @Autowired

    private UserMapper userMapper;
    @Override
    public User select(String username, String password) {
        User user = userMapper.selectByUsername(username);
        return user;
    }

    @Override
    public List<String> selectrole(String username) {
        List<String> role = userMapper.selectrole(username);
        return role;
    }
}
